<html>

<head>
<meta http-equiv="content-type" content="text/xml; charset=utf-8" />

<title>Ejemplo de uso del jsCalendar</title>

  <!-- calendar stylesheet -->
  <link rel="stylesheet" type="text/css" media="all" href="calendar-blue2.css" title="blue2" />

  <!-- main calendar program -->
  <script type="text/javascript" src="calendar.js"></script>

  <!-- language for the calendar -->
  <script type="text/javascript" src="lang/calendar-es.js"></script>

  <!-- the following script defines the Calendar.setup helper function, which makes
       adding a calendar a matter of 1 or 2 lines of code. -->
  <script type="text/javascript" src="calendar-setup.js"></script>

</head>


  <body>
 

    <form>
      <input type="text" id="data" name="data" />
      <img src="img.gif" id="trigger" title="seleccionar fecha"/>
      <input type="text" id="data2" name="data2" />
    </form>
    <script type="text/javascript">
      
      function actualiza() {
	document.getElementById("data2").set("hola");
      }
      
      
      Calendar.setup(
        {
          inputField : "data", // ID of the input field
          ifFormat : "%d/%m/%Y", // the date format
          button : "trigger" // ID of the button
        }
      );
      actualiza();
    </script>


  </body>
</html>
